﻿using System;
using System.Collections.Generic;
using DevExpress.Xpo;
using System.Text;

namespace BusinessObjects
{
    public class GiangVienTrongNam : XPObject
    {
        public GiangVienTrongNam()
            : base()
        {
            // This constructor is used when an object is loaded from a persistent storage.
            // Do not place any code here.
        }

        public GiangVienTrongNam(Session session)
            : base(session)
        {
            // This constructor is used when an object is loaded from a persistent storage.
            // Do not place any code here.
        }

        public override void AfterConstruction()
        {
            base.AfterConstruction();
            // Place here your initialization code.
        }

        //Fields
        NamThucTap fNamThucTap;
        [Association(@"GiangVienTrongNamReferencesNamThucTap")]
        public NamThucTap NamThucTap
        {
            get { return fNamThucTap; }
            set { SetPropertyValue<NamThucTap>("NamThucTap", ref fNamThucTap, value); }
        }
        GiangVien fGiangVien;
        [Association(@"GiangVienTrongNamReferencesGiangVien")]
        public GiangVien GiangVien
        {
            get { return fGiangVien; }
            set { SetPropertyValue<GiangVien>("GiangVien", ref fGiangVien, value); }
        }
        [Association(@"SinhVienTrongGiangVienReferencesGiangVienTrongNam", typeof(SinhVienTrongGiangVien))]
        public XPCollection<SinhVienTrongGiangVien> SinhVienTrongGiangViens { get { return GetCollection<SinhVienTrongGiangVien>("SinhVienTrongGiangViens"); } }
    }
}
